package mine;

/**
 * Created by james on 16/1/27.
 */
public class Apple {
    @FruitName("Apple")
    private String appleName;
    @FruitColor(fruitColor= FruitColor.Color.BULE)
    private String appleColor;

    public String getAppleColor() {
        return appleColor;
    }

    public void setAppleColor(String appleColor) {
        this.appleColor = appleColor;
    }

    public String getAppleName() {

        return appleName;
    }

    public void setAppleName(String appleName) {
        this.appleName = appleName;
    }

    public void displayName(){
        System.out.println("水果的名字是苹果");
    }
}
